<template>
	<view class="content">
		<image :src="staticUrl+'/image/login/img_bindSuccess.png'" style="width: 333rpx;height: 314rpx;"></image>
		<text class="SuccessText">绑定成功</text>
		<view class="NextStepBtn content" @click="finish()"><text>完成</text></view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			staticUrl:this.$config.StaticUrl,
			isAudio: null
		};
	},
	onLoad(option) {
		if (option.isAudio != 'undefined') {
			this.isAudio = option.isAudio;
		}
	},
	methods: {
		finish() {
			if (this.isAudio) {
				uni.redirectTo({
					url: '../useInstruction/useInstruction'
				});
			}else {
				uni.switchTab({
					url: '../../detection/detection'
				});
			}
		}
	}
};
</script>

<style>
page {
	background-color: #fafafa;
}
.content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
image {
	margin-top: 175rpx;
}
.SuccessText {
	margin-top: 88rpx;
	font-size: 44rpx;
	font-family: Source Han Sans CN;
	font-weight: normal;
	color: #333333;
}
.NextStepBtn {
	margin-top: 345rpx;
	margin-bottom: 100rpx;
	background-color: #0659c7;
	border-radius: 50px;
	width: 700rpx;
	height: 100rpx;
}
.NextStepBtn text {
	font-size: 44rpx;
	font-family: Source Han Sans CN;
	font-weight: normal;
	color: #ffffff;
}
</style>
